package com.yupi.springbootinit.model.dto.workflow;

import jakarta.validation.constraints.Min;
import com.fasterxml.jackson.annotation.JsonAlias;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 通用查询请求（分页）
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QueryRequest {
    @Min(value = 1, message = "pageNum必须>=1")
    @JsonAlias("current")
    private Integer pageNum;

    @Min(value = 1, message = "pageSize必须>=1")
    @JsonAlias("size")
    private Integer pageSize;

    private String keyword;

    private Long departmentId;

    private String status;
}